package com.demo.designmode.visitor;

/**
 * @Author: jxm
 * @Description: 具体元素角色类
 * @Date: 2023-12-12 15:30
 * @Version: 1.0
 */
public class Dog implements Animal{

    @Override
    public void accept(Person person) {
        person.feed(this);
        System.out.println("好好吃，汪汪汪！！！");
    }
}
